You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-30, 30' at line 14select *
from product
where p_show_siamshop='yes'
and p_stop = 0
and p_pause = ''
AND (p_tag LIKE '%Notice: Undefined offset: 2 in /home/admin/domains/siamshop.com/public_html/shop_manage%'
OR p_topic LIKE '%Notice: Undefined offset: 2 in /home/admin/domains/siamshop.com/public_html/shop_manage%'
OR p_detail LIKE '%Notice: Undefined offset: 2 in /home/admin/domains/siamshop.com/public_html/shop_manage%'
OR p_brand LIKE '%Notice: Undefined offset: 2 in /home/admin/domains/siamshop.com/public_html/shop_manage%'
OR p_model LIKE '%Notice: Undefined offset: 2 in /home/admin/domains/siamshop.com/public_html/shop_manage%'
)
ORDER BY p_shoplevel DESC , p_update DESC
LIMIT -30, 30